package main

import (
	"fmt"
	"io/ioutil"
	"regexp"
)

func main() {
	file, _ := ioutil.ReadFile("E:\\PersonalCodeHub\\go_code_hub\\go_code_hub\\practice\\src\\go_code\\slice\\file\\demo.txt")

	//正则匹配
	find := regexp.MustCompile("[0-9]+").Find(file)
	fmt.Println(string(find))
}
